<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>

        window.onload = function () {

            Vue.component('ppa', {
                props: ['post'],
                template: `<div class="blog-post">
      <h3>{{ post.title }}</h3>
  <button v-on:click="$emit('enlarge-text')">
  Enlarge text
</button>
    </div`
            })

            var pp = new Vue({
                el: '#pp',
                data: {
                    post: {
                        title: 'README.md'
                    }
                },

            })
        }
    </script>
</head>

<body>

    <ppa v-bind:post="post" v-on:enlarge-text="">mmmmmm</ppa>
</body>

</html>